package com.esyoga.yoyoga.pojo;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class TMomentsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TMomentsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMIdIsNull() {
            addCriterion("m_id is null");
            return (Criteria) this;
        }

        public Criteria andMIdIsNotNull() {
            addCriterion("m_id is not null");
            return (Criteria) this;
        }

        public Criteria andMIdEqualTo(Integer value) {
            addCriterion("m_id =", value, "mId");
            return (Criteria) this;
        }

        public Criteria andMIdNotEqualTo(Integer value) {
            addCriterion("m_id <>", value, "mId");
            return (Criteria) this;
        }

        public Criteria andMIdGreaterThan(Integer value) {
            addCriterion("m_id >", value, "mId");
            return (Criteria) this;
        }

        public Criteria andMIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("m_id >=", value, "mId");
            return (Criteria) this;
        }

        public Criteria andMIdLessThan(Integer value) {
            addCriterion("m_id <", value, "mId");
            return (Criteria) this;
        }

        public Criteria andMIdLessThanOrEqualTo(Integer value) {
            addCriterion("m_id <=", value, "mId");
            return (Criteria) this;
        }

        public Criteria andMIdIn(List<Integer> values) {
            addCriterion("m_id in", values, "mId");
            return (Criteria) this;
        }

        public Criteria andMIdNotIn(List<Integer> values) {
            addCriterion("m_id not in", values, "mId");
            return (Criteria) this;
        }

        public Criteria andMIdBetween(Integer value1, Integer value2) {
            addCriterion("m_id between", value1, value2, "mId");
            return (Criteria) this;
        }

        public Criteria andMIdNotBetween(Integer value1, Integer value2) {
            addCriterion("m_id not between", value1, value2, "mId");
            return (Criteria) this;
        }

        public Criteria andMUseridIsNull() {
            addCriterion("m_userid is null");
            return (Criteria) this;
        }

        public Criteria andMUseridIsNotNull() {
            addCriterion("m_userid is not null");
            return (Criteria) this;
        }

        public Criteria andMUseridEqualTo(Integer value) {
            addCriterion("m_userid =", value, "mUserid");
            return (Criteria) this;
        }

        public Criteria andMUseridNotEqualTo(Integer value) {
            addCriterion("m_userid <>", value, "mUserid");
            return (Criteria) this;
        }

        public Criteria andMUseridGreaterThan(Integer value) {
            addCriterion("m_userid >", value, "mUserid");
            return (Criteria) this;
        }

        public Criteria andMUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("m_userid >=", value, "mUserid");
            return (Criteria) this;
        }

        public Criteria andMUseridLessThan(Integer value) {
            addCriterion("m_userid <", value, "mUserid");
            return (Criteria) this;
        }

        public Criteria andMUseridLessThanOrEqualTo(Integer value) {
            addCriterion("m_userid <=", value, "mUserid");
            return (Criteria) this;
        }

        public Criteria andMUseridIn(List<Integer> values) {
            addCriterion("m_userid in", values, "mUserid");
            return (Criteria) this;
        }

        public Criteria andMUseridNotIn(List<Integer> values) {
            addCriterion("m_userid not in", values, "mUserid");
            return (Criteria) this;
        }

        public Criteria andMUseridBetween(Integer value1, Integer value2) {
            addCriterion("m_userid between", value1, value2, "mUserid");
            return (Criteria) this;
        }

        public Criteria andMUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("m_userid not between", value1, value2, "mUserid");
            return (Criteria) this;
        }

        public Criteria andMUsertypeIsNull() {
            addCriterion("m_usertype is null");
            return (Criteria) this;
        }

        public Criteria andMUsertypeIsNotNull() {
            addCriterion("m_usertype is not null");
            return (Criteria) this;
        }

        public Criteria andMUsertypeEqualTo(Integer value) {
            addCriterion("m_usertype =", value, "mUsertype");
            return (Criteria) this;
        }

        public Criteria andMUsertypeNotEqualTo(Integer value) {
            addCriterion("m_usertype <>", value, "mUsertype");
            return (Criteria) this;
        }

        public Criteria andMUsertypeGreaterThan(Integer value) {
            addCriterion("m_usertype >", value, "mUsertype");
            return (Criteria) this;
        }

        public Criteria andMUsertypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("m_usertype >=", value, "mUsertype");
            return (Criteria) this;
        }

        public Criteria andMUsertypeLessThan(Integer value) {
            addCriterion("m_usertype <", value, "mUsertype");
            return (Criteria) this;
        }

        public Criteria andMUsertypeLessThanOrEqualTo(Integer value) {
            addCriterion("m_usertype <=", value, "mUsertype");
            return (Criteria) this;
        }

        public Criteria andMUsertypeIn(List<Integer> values) {
            addCriterion("m_usertype in", values, "mUsertype");
            return (Criteria) this;
        }

        public Criteria andMUsertypeNotIn(List<Integer> values) {
            addCriterion("m_usertype not in", values, "mUsertype");
            return (Criteria) this;
        }

        public Criteria andMUsertypeBetween(Integer value1, Integer value2) {
            addCriterion("m_usertype between", value1, value2, "mUsertype");
            return (Criteria) this;
        }

        public Criteria andMUsertypeNotBetween(Integer value1, Integer value2) {
            addCriterion("m_usertype not between", value1, value2, "mUsertype");
            return (Criteria) this;
        }

        public Criteria andMPermissionIsNull() {
            addCriterion("m_permission is null");
            return (Criteria) this;
        }

        public Criteria andMPermissionIsNotNull() {
            addCriterion("m_permission is not null");
            return (Criteria) this;
        }

        public Criteria andMPermissionEqualTo(Integer value) {
            addCriterion("m_permission =", value, "mPermission");
            return (Criteria) this;
        }

        public Criteria andMPermissionNotEqualTo(Integer value) {
            addCriterion("m_permission <>", value, "mPermission");
            return (Criteria) this;
        }

        public Criteria andMPermissionGreaterThan(Integer value) {
            addCriterion("m_permission >", value, "mPermission");
            return (Criteria) this;
        }

        public Criteria andMPermissionGreaterThanOrEqualTo(Integer value) {
            addCriterion("m_permission >=", value, "mPermission");
            return (Criteria) this;
        }

        public Criteria andMPermissionLessThan(Integer value) {
            addCriterion("m_permission <", value, "mPermission");
            return (Criteria) this;
        }

        public Criteria andMPermissionLessThanOrEqualTo(Integer value) {
            addCriterion("m_permission <=", value, "mPermission");
            return (Criteria) this;
        }

        public Criteria andMPermissionIn(List<Integer> values) {
            addCriterion("m_permission in", values, "mPermission");
            return (Criteria) this;
        }

        public Criteria andMPermissionNotIn(List<Integer> values) {
            addCriterion("m_permission not in", values, "mPermission");
            return (Criteria) this;
        }

        public Criteria andMPermissionBetween(Integer value1, Integer value2) {
            addCriterion("m_permission between", value1, value2, "mPermission");
            return (Criteria) this;
        }

        public Criteria andMPermissionNotBetween(Integer value1, Integer value2) {
            addCriterion("m_permission not between", value1, value2, "mPermission");
            return (Criteria) this;
        }

        public Criteria andMTimeIsNull() {
            addCriterion("m_time is null");
            return (Criteria) this;
        }

        public Criteria andMTimeIsNotNull() {
            addCriterion("m_time is not null");
            return (Criteria) this;
        }

        public Criteria andMTimeEqualTo(String value) {
            addCriterion("m_time =", value, "mTime");
            return (Criteria) this;
        }

        public Criteria andMTimeNotEqualTo(String value) {
            addCriterion("m_time <>", value, "mTime");
            return (Criteria) this;
        }

        public Criteria andMTimeGreaterThan(String value) {
            addCriterion("m_time >", value, "mTime");
            return (Criteria) this;
        }

        public Criteria andMTimeGreaterThanOrEqualTo(String value) {
            addCriterion("m_time >=", value, "mTime");
            return (Criteria) this;
        }

        public Criteria andMTimeLessThan(String value) {
            addCriterion("m_time <", value, "mTime");
            return (Criteria) this;
        }

        public Criteria andMTimeLessThanOrEqualTo(String value) {
            addCriterion("m_time <=", value, "mTime");
            return (Criteria) this;
        }

        public Criteria andMTimeLike(String value) {
            addCriterion("m_time like", value, "mTime");
            return (Criteria) this;
        }

        public Criteria andMTimeNotLike(String value) {
            addCriterion("m_time not like", value, "mTime");
            return (Criteria) this;
        }

        public Criteria andMTimeIn(List<String> values) {
            addCriterion("m_time in", values, "mTime");
            return (Criteria) this;
        }

        public Criteria andMTimeNotIn(List<String> values) {
            addCriterion("m_time not in", values, "mTime");
            return (Criteria) this;
        }

        public Criteria andMTimeBetween(String value1, String value2) {
            addCriterion("m_time between", value1, value2, "mTime");
            return (Criteria) this;
        }

        public Criteria andMTimeNotBetween(String value1, String value2) {
            addCriterion("m_time not between", value1, value2, "mTime");
            return (Criteria) this;
        }

        public Criteria andMImageIsNull() {
            addCriterion("m_image is null");
            return (Criteria) this;
        }

        public Criteria andMImageIsNotNull() {
            addCriterion("m_image is not null");
            return (Criteria) this;
        }

        public Criteria andMImageEqualTo(String value) {
            addCriterion("m_image =", value, "mImage");
            return (Criteria) this;
        }

        public Criteria andMImageNotEqualTo(String value) {
            addCriterion("m_image <>", value, "mImage");
            return (Criteria) this;
        }

        public Criteria andMImageGreaterThan(String value) {
            addCriterion("m_image >", value, "mImage");
            return (Criteria) this;
        }

        public Criteria andMImageGreaterThanOrEqualTo(String value) {
            addCriterion("m_image >=", value, "mImage");
            return (Criteria) this;
        }

        public Criteria andMImageLessThan(String value) {
            addCriterion("m_image <", value, "mImage");
            return (Criteria) this;
        }

        public Criteria andMImageLessThanOrEqualTo(String value) {
            addCriterion("m_image <=", value, "mImage");
            return (Criteria) this;
        }

        public Criteria andMImageLike(String value) {
            addCriterion("m_image like", value, "mImage");
            return (Criteria) this;
        }

        public Criteria andMImageNotLike(String value) {
            addCriterion("m_image not like", value, "mImage");
            return (Criteria) this;
        }

        public Criteria andMImageIn(List<String> values) {
            addCriterion("m_image in", values, "mImage");
            return (Criteria) this;
        }

        public Criteria andMImageNotIn(List<String> values) {
            addCriterion("m_image not in", values, "mImage");
            return (Criteria) this;
        }

        public Criteria andMImageBetween(String value1, String value2) {
            addCriterion("m_image between", value1, value2, "mImage");
            return (Criteria) this;
        }

        public Criteria andMImageNotBetween(String value1, String value2) {
            addCriterion("m_image not between", value1, value2, "mImage");
            return (Criteria) this;
        }

        public Criteria andMTextIsNull() {
            addCriterion("m_text is null");
            return (Criteria) this;
        }

        public Criteria andMTextIsNotNull() {
            addCriterion("m_text is not null");
            return (Criteria) this;
        }

        public Criteria andMTextEqualTo(String value) {
            addCriterion("m_text =", value, "mText");
            return (Criteria) this;
        }

        public Criteria andMTextNotEqualTo(String value) {
            addCriterion("m_text <>", value, "mText");
            return (Criteria) this;
        }

        public Criteria andMTextGreaterThan(String value) {
            addCriterion("m_text >", value, "mText");
            return (Criteria) this;
        }

        public Criteria andMTextGreaterThanOrEqualTo(String value) {
            addCriterion("m_text >=", value, "mText");
            return (Criteria) this;
        }

        public Criteria andMTextLessThan(String value) {
            addCriterion("m_text <", value, "mText");
            return (Criteria) this;
        }

        public Criteria andMTextLessThanOrEqualTo(String value) {
            addCriterion("m_text <=", value, "mText");
            return (Criteria) this;
        }

        public Criteria andMTextLike(String value) {
            addCriterion("m_text like", value, "mText");
            return (Criteria) this;
        }

        public Criteria andMTextNotLike(String value) {
            addCriterion("m_text not like", value, "mText");
            return (Criteria) this;
        }

        public Criteria andMTextIn(List<String> values) {
            addCriterion("m_text in", values, "mText");
            return (Criteria) this;
        }

        public Criteria andMTextNotIn(List<String> values) {
            addCriterion("m_text not in", values, "mText");
            return (Criteria) this;
        }

        public Criteria andMTextBetween(String value1, String value2) {
            addCriterion("m_text between", value1, value2, "mText");
            return (Criteria) this;
        }

        public Criteria andMTextNotBetween(String value1, String value2) {
            addCriterion("m_text not between", value1, value2, "mText");
            return (Criteria) this;
        }

        public Criteria andMLikenumIsNull() {
            addCriterion("m_likeNum is null");
            return (Criteria) this;
        }

        public Criteria andMLikenumIsNotNull() {
            addCriterion("m_likeNum is not null");
            return (Criteria) this;
        }

        public Criteria andMLikenumEqualTo(Integer value) {
            addCriterion("m_likeNum =", value, "mLikenum");
            return (Criteria) this;
        }

        public Criteria andMLikenumNotEqualTo(Integer value) {
            addCriterion("m_likeNum <>", value, "mLikenum");
            return (Criteria) this;
        }

        public Criteria andMLikenumGreaterThan(Integer value) {
            addCriterion("m_likeNum >", value, "mLikenum");
            return (Criteria) this;
        }

        public Criteria andMLikenumGreaterThanOrEqualTo(Integer value) {
            addCriterion("m_likeNum >=", value, "mLikenum");
            return (Criteria) this;
        }

        public Criteria andMLikenumLessThan(Integer value) {
            addCriterion("m_likeNum <", value, "mLikenum");
            return (Criteria) this;
        }

        public Criteria andMLikenumLessThanOrEqualTo(Integer value) {
            addCriterion("m_likeNum <=", value, "mLikenum");
            return (Criteria) this;
        }

        public Criteria andMLikenumIn(List<Integer> values) {
            addCriterion("m_likeNum in", values, "mLikenum");
            return (Criteria) this;
        }

        public Criteria andMLikenumNotIn(List<Integer> values) {
            addCriterion("m_likeNum not in", values, "mLikenum");
            return (Criteria) this;
        }

        public Criteria andMLikenumBetween(Integer value1, Integer value2) {
            addCriterion("m_likeNum between", value1, value2, "mLikenum");
            return (Criteria) this;
        }

        public Criteria andMLikenumNotBetween(Integer value1, Integer value2) {
            addCriterion("m_likeNum not between", value1, value2, "mLikenum");
            return (Criteria) this;
        }

        public Criteria andMFlagIsNull() {
            addCriterion("m_flag is null");
            return (Criteria) this;
        }

        public Criteria andMFlagIsNotNull() {
            addCriterion("m_flag is not null");
            return (Criteria) this;
        }

        public Criteria andMFlagEqualTo(Integer value) {
            addCriterion("m_flag =", value, "mFlag");
            return (Criteria) this;
        }

        public Criteria andMFlagNotEqualTo(Integer value) {
            addCriterion("m_flag <>", value, "mFlag");
            return (Criteria) this;
        }

        public Criteria andMFlagGreaterThan(Integer value) {
            addCriterion("m_flag >", value, "mFlag");
            return (Criteria) this;
        }

        public Criteria andMFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("m_flag >=", value, "mFlag");
            return (Criteria) this;
        }

        public Criteria andMFlagLessThan(Integer value) {
            addCriterion("m_flag <", value, "mFlag");
            return (Criteria) this;
        }

        public Criteria andMFlagLessThanOrEqualTo(Integer value) {
            addCriterion("m_flag <=", value, "mFlag");
            return (Criteria) this;
        }

        public Criteria andMFlagIn(List<Integer> values) {
            addCriterion("m_flag in", values, "mFlag");
            return (Criteria) this;
        }

        public Criteria andMFlagNotIn(List<Integer> values) {
            addCriterion("m_flag not in", values, "mFlag");
            return (Criteria) this;
        }

        public Criteria andMFlagBetween(Integer value1, Integer value2) {
            addCriterion("m_flag between", value1, value2, "mFlag");
            return (Criteria) this;
        }

        public Criteria andMFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("m_flag not between", value1, value2, "mFlag");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}